package com.training.mapper;

import com.training.entity.Information;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface InformationMapper {
    int insert(Information information);
    int update(Information information);
    int delete(@Param("id") Long id, @Param("teacherId") Long teacherId);
    Information findById(@Param("id") Long id);
    List<Information> findAll(@Param("keyword") String keyword);
    List<Information> findByTeacherId(@Param("teacherId") Long teacherId, @Param("keyword") String keyword);
}